package com.test.spi.spimain;

import com.test.spi.ICall;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther: zouren
 * @date: 2021/1/11
 * @description:
 */
@RestController
@RequestMapping("/spi")
public class SpiController {
    @Autowired
    private ICall call;

    @RequestMapping(method = {RequestMethod.GET}, value = "/test")
    public String test() {

        return call.invoke("test");
    }
}
